package com.mine.pojo;

import java.math.BigDecimal;
import java.util.Date;

public class Address {
    @Override
	public String toString() {
		return "Address [id=" + id + ", address=" + address + ", addressDetail=" + addressDetail + ", contact="
				+ contact + ", phone=" + phone + ", userId=" + userId + ", lon=" + lon + ", lat=" + lat
				+ ", createTime=" + createTime + ", updateTime=" + updateTime + ", priority=" + priority + "]";
	}

	private Long id;

    private String address;

    private String addressDetail;

    private String contact;

    private String phone;

    private Long userId;

    private BigDecimal lon;

    private BigDecimal lat;

    private Date createTime;

    private Date updateTime;
    
    private Byte priority;//是否是默认优先的地址 1默认优先 0一般普通地址

    public Byte getPriority() {
		return priority;
	}

	public void setPriority(Byte priority) {
		this.priority = priority;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail == null ? null : addressDetail.trim();
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact == null ? null : contact.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public BigDecimal getLon() {
        return lon;
    }

    public void setLon(BigDecimal lon) {
        this.lon = lon;
    }

    public BigDecimal getLat() {
        return lat;
    }

    public void setLat(BigDecimal lat) {
        this.lat = lat;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}